package Usermanagement

import "fmt"

type Mainfase struct {
	Id       int
	Name     string
	Gender   string
	Age      int
	Email    string
	Password string
}

func NewMainfase(Name, Gender, Password string, Age, Id int, Email string) *Mainfase {
	return &Mainfase{
		Id:       Id,
		Name:     Name,
		Gender:   Gender,
		Age:      Age,
		Email:    Email,
		Password: Password,
	}
}

func Monologue() *Mainfase {
	var Name, Gender, Password, Email string
	var Age, Id int
	fmt.Println("请输入用户的ID")
	fmt.Scan(&Id)
	fmt.Print("密码:")
	fmt.Scan(&Password)
	fmt.Print("姓名:")
	fmt.Scan(&Name)
	fmt.Print("性别:")
	fmt.Scan(&Gender)
	fmt.Print("年龄:")
	fmt.Scan(&Age)
	fmt.Print("邮箱:")
	fmt.Scan(&Email)
	return NewMainfase(Name, Gender, Password, Age, Id, Email)
}
